@extends('layout.wechat_frame')

@section('main')

    <header class="mui-bar mui-bar-nav">
        <a class="mui-icon mui-icon-bars mui-pull-left mui-plus-visible"></a>
        <h1 class="mui-title">待办事项</h1>
    </header>

    <div class="mui-content">

        @if (!empty($enquiries))
                <div class="title">待报价的询价单</div>
                    <ul class="mui-table-view">
                        @if (count($enquiries) > 0)
                            @foreach($enquiries as $enquiry)
                                <li class="mui-table-view-cell"><a data-frame-title="询价单报价"  href="{{ route('enquiryQuote.eqDetail', ['enquiry' => $enquiry->id]) }}" >{{ $enquiry->title }} - {{ strval((float)$enquiry->quantity) }} 吨</a></li>
                            @endforeach
                        @else
                            <tr>
                                <li class="mui-table-view-cell">暂无待报价的询价单</li>
                            </tr>
                        @endif
                    </ul>
        @endif

        @if (!empty($bids))
            <div class="title">待报价的标书</div>
            <ul class="mui-table-view">
                @if (count($bids) > 0)
                    @foreach($bids as $bid)
                        <li class="mui-table-view-cell mui-cell-blue"><a data-frame-title="标书报价"  href="{{ route('bidQuote.bqDetail', ['bid' => $bid->id]) }}" >{{ $bid->code }} {{ $bid->goods->name }}</a></li>

                    @endforeach
                @else
                    <tr>
                        <li class="mui-table-view-cell">暂无待报价的标书</li>
                    </tr>
                @endif
            </ul>
        @endif
    </div>
@stop

@section('js')
@stop